
<!-- m_navbar-->
{{template "m_navbar.html" .}}


<!-- body start-->
<div >
    <!-- Default panel contents -->
    <form action="/sfaddfu?active={{.active}}&&fid={{.fid}}" method="post">
        <div class="alert alert-light" role="alert">
            <p>分享的文件: {{.fname}}</p>
            <p>用户列表: {{.count}}</p>
                <input class="btn btn-outline-primary" type="submit" value="分享">
                <a class="btn btn-outline-primary" href="/sfaddfu?active={{.active}}&&fid={{.fid}}&&url=1">分享链接</a>
        </div>
        <br>
    <!-- Table -->
        <table class="table">
            <tr>
                <th>编号</th>
                <th>用户名</th>
                <th>账户</th>
                <th>操作</th>
            </tr>
            <tr>
                <th>所有人</th>
                <th>所有人</th>
                <th>分享给所有人</th>
                <th>
                    <label class="btn btn-outline-dark">
                        <input  type="checkbox" name="uids" value=1>
                    </label>
                </th>
            </tr>
                <!--.users  读取分离文件列表-->
                {{range $index, $elem := .users}}
                    {{if lt 1 $elem.ID}}
                        <tr>
                            <th>#{{$index}}</th>{{/*编号*/}}
                            <th>{{$elem.Name}}</th>{{/*名称*/}}
                            <th>{{$elem.Account}}</th>{{/*账户*/}}
                            <th>
                                <label class="btn btn-outline-dark">
                                    <input  type="checkbox" name="uids" value={{$elem.ID}}>
                                </label>
                            </th>
                        </tr>
                    {{end}}
                {{end}}
        </table>
    </form>
</div>

<!-- body end-->

<!-- m_footer-->
{{template "m_footer.html" .}}